Crate generator[−][src]
generator
Rust generator library
Macros
done | it’s a special return instruction that yield nothing but only terminate the generator safely |
Structs
Generator | the generator type |
Gn | Generator helper |
Scope | passed in scope type it not use the context to pass data, but keep it’s own data ref this struct provide both compile type info and runtime data |
Enums
Error | yield panic error types |
Functions
co_get_yield | coroutine get passed in yield para |
co_set_para | set current coroutine para in user space |
co_yield_with | coroutine yield |
get_local_data | get the current context local data only coroutine support local data |
get_yield | Deprecated get the passed in para |
is_generator | check the current context if it’s generator |
yield_ | Deprecated yield and get the send para |
yield_from | Deprecated
|
yield_with | Deprecated yield something without catch passed in para |